import request from '@/utils/request'

// 查询城市列表
export function listSystem_city(query) {
  return request({
    url: '/yipaiju/system_city/list',
    method: 'get',
    params: query
  })
}

export function listAll(query) {
  return request({
    url: '/yipaiju/system_city/list/all',
    method: 'get',
    params: query
  })
}


// 查询城市详细
export function getSystem_city(id) {
  return request({
    url: '/yipaiju/system_city/' + id,
    method: 'get'
  })
}

// 新增城市
export function addSystem_city(data) {
  return request({
    url: '/yipaiju/system_city',
    method: 'post',
    data: data
  })
}

// 修改城市
export function updateSystem_city(data) {
  return request({
    url: '/yipaiju/system_city',
    method: 'put',
    data: data
  })
}

// 删除城市
export function delSystem_city(id) {
  return request({
    url: '/yipaiju/system_city/' + id,
    method: 'delete'
  })
}
